package com.demo;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class ExpressTest {

	public static void main(String[] args) {
		String regex="1[356789][0-9]{9}";
		Pattern pattern = Pattern.compile(regex);
		String s = "aaaseeriojsdf13837125202asldfhoi7323aaa18937638598asd";
		Matcher matcher = pattern.matcher(s);
		while(matcher.find()) {
			String str = matcher.group();
			System.out.println("==="+str);
		}
	}

	public static void test1() {
		String str = "sfljs####lsfj234TTTTTTTTk454sd0000000sdhd000000hf";
		String regex = "(.)\\1+";
		String [] split = str.split(regex);
		System.out.println("===="+split.length);
		for (String string : split) {
			System.out.println(string);
		}
	}

}
